package com.mongo.data.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Document("mission_status")
public class MissionStatus {

    @Id
    @Schema(description = "包id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long _id;

    @Schema(description = "包名称")
    private String name;

    @Schema(description = "jobUUID")
    private String jobUUID;

    @Schema(description = "开始时间")
    private Long beginTime;

    @Schema(description = "结束时间")
    private Long endTIme;

    @Schema(description = "时长")
    private Long dataDuration;

    @Schema(description = "上传处理节点")
    private UploadNode uploadNode;

    @Schema(description = "数据处理节点列表")
    private List<NodeInfo> dataNodes;

    @Schema(description = "业务处理节点列表")
    private List<NodeInfo> businessNodes;


}
